import Main from '@/view/main'

export default [
  {
    path: '/sys/manage/index',
    name: 'sys:manage:index',
    meta: {
      icon: 'md-settings',
      title: '系统设置',
      access: ['admin','sys:manage:index'],
      notCache: true,
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/sys/resource/index',
        name: 'sys:resource:index',
        meta: {
          icon: '',
          title: '菜单管理',
          access: ['admin','sys:resource:index'],
          notCache: true
        },
        component:(resolve) => {
          import('@/view/modules/sys/resource/index.vue').then(m => {
            resolve(m)
          })
        }
      },
      {
        path: '/sys/admin/index',
        name: 'sys:admin:index',
        meta: {
          icon: '',
          title: '管理员管理',
          access: ['admin','sys:admin:index'],
          notCache: true
        },
        component:(resolve) => {
          import('@/view/modules/sys/admin/index.vue').then(m => {
            resolve(m)
          })
        }
      },
      {
        path: '/sys/role/index',
        name: 'sys:role:index',
        meta: {
          icon: '',
          title: '角色管理',
          access: ['admin','sys:role:index'],
          notCache: true
        },
        component:(resolve) => {
          import('@/view/modules/sys/role/index.vue').then(m => {
            resolve(m)
          })
        }
      }
    ]
  }
]